package com.wenx.v3system.modular.cloud.domain.maps;

import com.wenx.v3system.modular.cloud.domain.dto.SysUserDto;
import com.wenx.v3system.modular.cloud.domain.po.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface SysUserMap {

    SysUserMap INSTANCE = Mappers.getMapper(SysUserMap.class);

    SysUser toPo(SysUserDto dto);
    
    List<SysUser> toPoList(List<SysUserDto> dtoList);

    SysUserDto toDto(SysUser user);
}
